package com.yxw.live_vod_boot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yxw.live_vod_boot.dto.ShopQueryDTO;
import com.yxw.live_vod_boot.entity.YxLiveShopEntity;
import com.yxw.live_vod_boot.vo.ShopHomePageVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author liuxin
 * @create 2023-11-16 15:23:14
 * @description  店铺管理
 */
@Repository
public interface ShopMapper extends BaseMapper<YxLiveShopEntity> {

    /**
     * 获取店铺主页信息
     * @param shopId
     * @return
     */
    ShopHomePageVO getShopHomePage(Long shopId);


    /**
     * 根据店铺ID获取店铺信息
     * @param shopId
     * @return
     */
    ShopHomePageVO getShopByShopId(Long shopId);

    /**
     * 获取店铺列表
     * @param page
     * @param dto
     * @return
     */
    List<ShopHomePageVO> getShopHomePageList(Page<ShopHomePageVO> page,@Param("dto") ShopQueryDTO dto);

    /**
     * 获取店铺列表
     * @return
     */
    List<ShopHomePageVO> getShopList();
}
